package com.xuecheng.search.service;

import com.xuecheng.commons.model.dto.CoursePubIndexDto;
import com.xuecheng.commons.model.dto.PageRequest;
import com.xuecheng.commons.model.vo.ResponseResult;

import java.io.IOException;

public interface SearchService {
    // 课程同步
    void CoursePubsyncToEs(Long coursePubId) throws IOException;

    //查询课程
    ResponseResult getCourse(PageRequest pageParam, CoursePubIndexDto dto) throws IOException;

    //根据ID查询发布课程的信息
    ResponseResult getPubCourseById(String id) throws IOException;

    //课程下架
    void removeDocument(Long coursePubId) throws IOException;
}
